﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gert3D;

namespace Test3D
{
  class Program
  {
    static void Main(string[] args)
    {
      Box3 box = new Box3(-1, 1, 1, -1, 1, -1);
      Ray ray = new Ray(new Vector3(-0.5, 0, -0.5), Vector3.Normalize(new Vector3(-1, 0, 1)), 100);

      IntersectionInfo info = ray.IntersectBox(box, double.MaxValue);
      if (info == null)
      {
        Console.WriteLine("No intersection!");
      }
      else
      {
        Console.WriteLine("Intersection: " + info);
      }

      Console.ReadLine();
    }
  }
}
